package SprinklerTruck;

import CarController.CarController;

public class SprinklerTruckAdapter extends CarController {
    SprinklerTruckHorns horn;
    SprinklerTruckMessage SprinklerTruckMessage;
    public SprinklerTruckAdapter(){
        horn = new SprinklerTruckHorns();
        SprinklerTruckMessage = new SprinklerTruckMessage();
    }
    @Override
    public void horns() {
        horn.setVolume("~~~清理车工作声~~~");
        horn.volumeInfo();
    }

    @Override
    public void message() {
        SprinklerTruckMessage.setColor("灰白相间");
        SprinklerTruckMessage.setSize("中型车");
        System.out.println("颜色为:"+ SprinklerTruckMessage.colorInfo());
        System.out.println("车型为："+ SprinklerTruckMessage.sizeInfo());
    }
}
